::-moz-list-number
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The ::-moz-list-number
CSS pseudo-element is a Mozilla extension that represents the marker (typically a number) of a list item (<li>
) in an ordered list (<ol>
).
Syntax
css
li::-moz-list-number {
/* ... */
}
Examples
HTML
html
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
CSS
css
li::-moz-list-number {
font-style: italic;
font-weight: bold;
}
Result
Specifications
Not part of any standard.